package com.buba.record.mapper;

import com.buba.pojo.record.Record;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.buba.pojo.user.PatientCard;
import com.buba.record.vo.RecordVo;
import org.apache.ibatis.annotations.Mapper;
import com.buba.record.VoL.RecordVoL;
import com.buba.record.VoL.RecordjlVoL;
import com.buba.record.VoL.RecordVoL;
import com.buba.record.vowl.ConsumptionVoWL;
import com.buba.record.vowl.RecordVoWL;

import java.util.List;

/**
 * <p>
 * 记录表 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-06-09
 */

@Mapper
public interface RecordMapper extends BaseMapper<Record> {

    List<RecordVoWL> findAllCon(ConsumptionVoWL cVO);

    RecordVoWL getByRID(Integer id);

    RecordVoL selectByrIDtoyp(Integer id);

    List<RecordVo> patientSkype(Integer id);

    List<RecordVo> recordDate(Integer id, String begin, String end);

    RecordVo cardBalance(Integer id);

    RecordVo recordById(Integer id);

    RecordVo drugRecordById(Integer id);

    RecordVoL selectByInpatientID(Integer id);

    List<RecordjlVoL> selectjlByInpatientID(Integer id);

    RecordjlVoL selectjlByInpatientdrugRecordSerialNumber(Integer drugRecordSerialNumber);

    RecordVo recordByrId(Integer id);
    RecordVoL selectByInpatientrlsh(Integer id);


    List<RecordVo> patientRecordById(Integer id, String begin, String end);
}
